<template>
  <div class="poster-test">
    <div class="coupon">10000元</div>
    <div class="ticket-icon">领20元券</div>
    <div
      class="coupon-btn get-coupon-btn"
      style="background-image: url(//gw.alicdn.com/tfs/TB16d.1ykPoK1RjSZKbXXX1IXXa-665-115.png_720x720.jpg);"
    >
      <div class="coupon-info">
        <span class="coupon-icon">¥</span>
        <span class="coupon-amount">40</span>
      </div>
      <div class="coupon-date">
        使用期限&nbsp;2020.05.23-2020.05.25
      </div>
      <div class="btn-name">
        立即领券
      </div>
    </div>
    <sharePoster />
    <div class="pppp border-1px">你好啊</div>
    <div
      class="pppp"
      style="border: 20px solid red; box-sizing: border-box; margin-top: 10px"
    >
      你好啊
    </div>
  </div>
</template>

<script>
import sharePoster from '../../components/sharePoster.vue';

export default {
  name: 'index',
  components: {
    sharePoster
  }
};
</script>

<style lang="scss" scoped>
@import '../../styles/border';

.poster-test {
  position: relative;
  .coupon {
    margin-top: 0.1rem;
    height: 0.32rem;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: left center;
    background-image: url(https://gw.alicdn.com/tfs/TB1jtRHbkvoK1RjSZFNXXcxMVXa-82-24.png);
    font-size: 0.2rem;
    line-height: 0.32rem;
    padding: 0.02rem 0.1rem 0 0.26rem;
    color: #ff2a53;
    overflow: hidden;
    display: inline-block;
  }

  .ticket-icon,
  .ticket-icon-get {
    position: absolute;
    top: 0;
    right: 8px;
    width: 57px;
    height: 20px;
    text-align: center;
  }
  .ticket-icon {
    background: url(//gw.alicdn.com/tfs/TB16EAfQXXXXXaWXXXXXXXXXXXX-114-40.png);
    background-size: cover;
    color: #fff;
    font-size: 12px;
    line-height: 20px;
  }
  .coupon-btn {
    width: 6.65rem;
    height: 1.15rem;
    margin: 0 auto;
    background-repeat: no-repeat;
    background-size: 6.65rem 1.15rem;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }
  .get-coupon-btn {
    cursor: pointer;
    position: relative;
    padding-left: 0.35rem;
    padding-top: 0.05rem;
    position: absolute;
    left: 0.075rem;
    bottom: 0.075rem;
  }
  .btn-name {
    position: absolute;
    right: 0;
    top: 0;
    color: #fff;
    font-size: 0.32rem;
    line-height: 1.15rem;
    text-align: center;
    height: 1.15rem;
    width: 2.2rem;
  }
  .pppp {
    width: 2rem;
    height: 2rem;
    font-size: 0.4rem;
  }
}
</style>
